<?php
/* @var $this PageController */
/* @var $model Page */

$this->breadcrumbs=array(
        'Pages'=>array('index'),
        'Manage',
);

$this->menu=array(
        array('label'=>'Oldalak listája', 'url'=>array('index')),
        array('label'=>'Új oldal', 'url'=>array('create')),
);

?>


<?php $this->widget('zii.widgets.grid.CGridView', array(
        'id'=>'page-grid',
        'dataProvider'=>$model->search(),
         'htmlOptions'=> array('class'=>'table table-striped'),
         'summaryText'=>'',
      'columns'=>array(
      'rank',
		'title',
		'description',
		'controller',
		array(
        'name'=>'parent_id',
        'type'=>'raw',
        'value' =>'$data->parent == null ? "" : $data->parent->title'
        ),
      array(
         'name'=> 'active',
         'value'=> '$data->active == 1 ? "igen" : "nem"'
      ),
		array(
			'class'=>'CButtonColumn',
         'deleteConfirmation' => 'Biztosan törli a $data->title oldalt?'
		),
	),
)); ?>
